package com.pangdou.data.controller;

import com.pangdou.data.entity.po.SummarySheetPo;
import com.pangdou.data.entity.req.SummaryListReq;
import com.pangdou.data.service.ISummarySheetService;
import com.pangdou.page.TableDataInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/sheet")
public class SheetController extends BaseController {

    @Resource
    private ISummarySheetService sheetService;

    @GetMapping("/qryList")
    public TableDataInfo getUserPage(SummaryListReq userLitReq) {
        startPage();
        List<SummarySheetPo> summarySheetPos = sheetService.selectSummarySheetList(userLitReq);
        return getDataTable(summarySheetPos);
    }
}
